<?php

namespace app\shop\model;

use think\Model;

class MemberWithdraw extends Model
{
    //交易类型获取器
    public function getTypeTextAttr($value, $data)
    {
        $types = [1 => '充值', 2 => '提现', 3 => '消费'];
        return $types[$data['type_id']];
    }
}
